/*
 * OpenSCAD File with the code to draw a part of the quadcopter in 3D
 * Part Number: 17
 * Version: 0.01
 * Units: mm
 * Last Modification: Wed Oct 13 20:04:47 WEST 2010
 *
 * Copyright (C) 2010 Henrique Dias <henrique.ribeiro.dias@gmail.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

frominclude = 0;

module p17_subcomponent()
{
	cylinder(h=12, r=1, center=true, $fn=60);
	translate(v = [2, 0, 5-0.25-2]) {
		cube(size = [6, 6, 0.5], center=true);
	}
	translate(v = [2+2, 0, 5-0.5-2-0.5]) {
		cube(size = [6, 6, 1], center=true);
	}
	translate(v = [2+1, 0, 5-0.75-0.5-1.5]) {
		cube(size = [6, 2, 1.5], center=true);
	}
	translate(v = [0, 5.0, -3.75+2]) {
		cube(size = [2, 6, 2.5], center=true);
	}
	translate(v = [0, -5.0, -3.75+2]) {
		cube(size = [2, 6, 2.5], center=true);
	}
	translate(v = [5.0, 0, -3.75+2]) {
		cube(size = [6, 2, 2.5], center=true);
	}
	translate(v = [-5.0, 0, -3.75+2]) {
		cube(size = [6, 2, 2.5], center=true);
	}
}


module p17_addcomponent()
{
	cube(size = [6, 6, 10], center=true);
}

module part17()
{
	difference() {
		union() {
			p17_addcomponent();
		}
		p17_subcomponent();
	}
}

if(frominclude == 0) {
	part17();
}
